package afcp.alumni.model;

/**
 * <p>
 * List all the problems.
 * </p>
 * <p>
 * Don't forget to update the StripesResources_fr.properties when adding a problem here.
 * </p>
 * 
 * @author aorylamballe
 * 
 */
public enum Pb {
	// errors
	ALREADY_IN_DATABASE("alreadyindatabase"),
	PROBLEM_WITH_DATABASE("problemwithdatabase"),
	NOT_IN_DATABASE("notindatabase"),
	NO_EMAIL_QUOTA("noemailquota"),
	PROBLEM_EMAIL_SENDING("problememailsending"),
	NO_EMAIL("noemail"),
	NO_EMAIL_CANT_SEND("noemailcantsend"),
	
	// warnings
	INCORRECT_SEX("incorrectsex"),
	PASSWORD_ALREADY_GENERATED("passwordalreadygenerated"),
	INCORRECT_BIRTHDATE_FORMAT("incorrectbirthdayformat"),
	NULL_YEAR_VALUE("nullyearvalue"),
	INCORRECT_YEAR_NUMBER_FORMAT("incorrectyearnumberformat"),
	NO_FIRSTNAME("nofirstname"),
	NO_LASTNAME("nolastname"),
	NO_BIRTHDATE("nobirthdate"),
	NO_PARISTECH_SCHOOL("noparistechschool"),
	TOO_LONG_FIELD("toolongfield"),
	UNPARSABLE_PHONE_NUMBER("unparsablephonenumber"),
	UNPARSABLE_ADDRESS("unparsableaddress"),
	SEVERAL_ADDRESSES_FOUND("severaladdressesfound"),
	ADDRESS_PARSING_ERROR("addressparsingerror"),
	
	// Don't forget to update the StripesResources_fr.properties when adding a
	// problem here.
	;
	
	private String key;
	private Pb(String key) {
		this.key = key;
	}
	public String key() {
		return key;
	}
}
